
<style>

    .didd li{ float: left; width: 45%; height: 30px; line-height: 30px; overflow: hidden;}
</style>
<volist name="did" id="did">
    <div style=" font-size: 15px;"><b>{$did['name']}</b></div>
<div class="didd">
    <ul>
        <volist name="did['did1']" id="did1">
            <in name="did1['aid']" value="$article1['did']">
                <li><input class="aids" type="checkbox" checked="checked"  value="{$did1['aid']}"> {$did1['title']}</li>
            <else />
                <li><input class="aids" type="checkbox"  value="{$did1['aid']}"> {$did1['title']}</li>
            </in>
        </volist>
    </ul>
</div>
    <div style="clear: both"></div>
</volist>
<script>
    $(".aids").each(function(){
        $(this).click(function(){
            var l=[];
            $(".aids:checked").each(function(i){l[i]=this.value});
            $("#did").val(l.join(","));
        })
    });
</script>
